package com.jinzhi.wxpay.service;


import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.jinzhi.wxpay.entity.OrderInfo;
import com.jinzhi.wxpay.entity.OrderParme;
import com.jinzhi.wxpay.enums.OrderStatus;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public interface OrderInfoService  extends IService<OrderInfo> {


    OrderInfo getOrderStatus(String orderNo);

    OrderInfo createOrderByProductId(Long userId, Long productId);//传入订单id

    //积分购买和充值
    OrderInfo createOrderByJF(String title, Long userId, BigDecimal totalFee);//商品名（多少积分），传入用户id，金额

    OrderInfo  createOrderByJFSum();//总收款金额

    void  saveCodeUrl(String orderNo,String codeUrl);//查询订单是否已经存在

    Page<OrderParme>  listOrderByCreateTimeDesc(int current, int number,OrderParme  orderParme);//查询订单信息

    //订单详情数据
    OrderInfo  selectOrderXQ(Long id);


    void updateStatusByOrderNo(String orderNo, OrderStatus orderStatus);

    //根据时间进行导出
    List<OrderInfo>  OrderInfoExcel(OrderParme  orderParme);


}
